package com.tan.Controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
public class RouterController {

    @RequestMapping({"/","/index"})
    public String index()
    {
        return "index";
    }

    @RequestMapping("/toLogin")
    public String toLogin()
    {
        return "views/login";
    }

    @RequestMapping("/level/{fid}/{sid}")
    public String level(@PathVariable("fid")int fid,@PathVariable("sid")int sid)
    {
        return "views/level"+fid+"/"+sid;
    }
}
